package com.youhome.business.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * Created by chen365 on 2019/01/29.
 */
@Data
@ApiModel
public class DTOSMS {

    @NotBlank(message = "短信ID不能为空")
    @ApiModelProperty(value = "短信ID", required = true)
    private String smsId;

    @NotBlank(message = "短信验证码不能为空")
    @Length(min = 6, max = 6, message = "短信验证码长度为位数字")
    @ApiModelProperty(value = "短信验证码", required = true)
    private String smsCode;
}
